﻿#include "FITKAcousticsPostData.h"
#include "FITKAcousticsHDF5Constants.h"
#include "FITKAcousticsHDF5LoadCase.h"
#include "FITKAcousticsContourPlotData.h"

Acoustics::FITKAcousticsPostData::FITKAcousticsPostData()
{
    //创建对象
    _constants = new FITKAcousticsHDF5Constants();
    _loadCaseManager = new FITKAcousticsHDF5LoadCaseManager();
    _contourPlotDataManager = new FITKAcousticsContourPlotDataManager();
    
}

Acoustics::FITKAcousticsPostData::~FITKAcousticsPostData()
{
    //释放内存
    if (_constants) delete _constants;
    if (_loadCaseManager) delete _loadCaseManager;
    if (_contourPlotDataManager) delete _contourPlotDataManager;
}

void Acoustics::FITKAcousticsPostData::clearData()
{
    //清空数据
    if (_constants) _constants->clearData();
    if (_loadCaseManager) _loadCaseManager->clear();
    if (_contourPlotDataManager) _contourPlotDataManager->clear();
}
